const rateLimit = require("express-rate-limit");

const apiLimiter = rateLimit({
  windowMs: 10 * 1000, // 15 minutes
  max: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes)
  message: "你小子是手速也太快了，服务器妹妹都被你干冒烟了.",
});

module.exports = apiLimiter;
